package com.matching.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.matching.dao.MatchingDao;

@Controller
public class AcceptProposeController {
	
	@Autowired
	private MatchingDao matchingDao;
	
	@RequestMapping("/matching/acceptPropose.do")
	public String process(@RequestParam("num")int num){
		
		matchingDao.acceptPropose(num);
		
		return "redirect:/matching/receivePropose.do";
	}
}
